<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-1.11.1.js"></script>
		<style>
			button{
				width: 100px;
				height: 40px;
			}
			div{
				width: 400px;
				height: 200px;
				text-align: center;
				background-color: skyblue;
			}
		</style>
	</head>
	<body>
		<button id="tab01" class="tab">tab1</button>
		<button id="tab02" class="tab">tab2</button>
		<button id="tab03" class="tab">tab3</button>
		<div class="d1"></div>
		<div class="d2"></div>
		<div class="d3"></div>
		<script>
		$("#tab01").click(function(){
		$("#tab01").css("background-color","skyblue");
		$("#tab02").css("background-color","#b2b2b2");
		$("#tab03").css("background-color","#b2b2b2");
		$(".d1").text("tab文字内容一");
		$(".d1").css("display","block");
		$(".d2").css("display","none");
		$(".d3").css("display","none");
	    });
	    $("#tab02").click(function(){
		$("#tab02").css("background-color","skyblue");
		$("#tab01").css("background-color","#b2b2b2");
		$("#tab03").css("background-color","#b2b2b2");
		$(".d2").text("tab文字内容二");
		$(".d1").css("display","none");
		$(".d2").css("display","block");
		$(".d3").css("display","none");
	    });
	    $("#tab03").click(function(){
		$("#tab03").css("background-color","skyblue");
		$("#tab02").css("background-color","#b2b2b2");
		$("#tab01").css("background-color","#b2b2b2");
		$(".d3").text("tab文字内容三");
		$(".d1").css("display","none");
		$(".d2").css("display","none");
		$(".d3").css("display","block");
	    });
		</script>
	</body>
</html>